package com.sc.bean.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 去除PageBean实体类的一些不必要字段，用于分页查询时输入参数
 */
@ApiModel("PageBean实体的简化，用于分页查询传参")
@Data
public class PageBeanVo {
    @ApiModelProperty("当前页码")
    private int page;         //当前页

    @ApiModelProperty("每页最大条目数")
    private int pageSize;     //每页最大条目数

    @ApiModelProperty("登陆的企业id")
    private int eid;

    public void setPage(int page) {
        if (page == 0)
            this.page = 1;
        else
            this.page = page;
    }
    public void setPageSize(int pageSize) {
        if (pageSize == 0)
            this.pageSize = 10;
        else
            this.pageSize = pageSize;
    }
}
